package com.zhiliao.module.web.cms.service;


import com.zhiliao.common.base.BaseService;
import com.zhiliao.module.web.cms.vo.TCmsSiteVo;
import com.zhiliao.module.web.system.vo.UserVo;
import com.zhiliao.mybatis.model.TCmsSite;

/**
 * Description:
 *
 * @author qirong
 * @date 2018-10-26
 */
public interface SiteService extends BaseService<TCmsSite,Integer> {

    /**
     * save
     * @param pojo
     * @return
     */
    @Override
    String save(TCmsSite pojo);

    /**
     * update
     * @param pojo
     * @return
     */
    @Override
    String update(TCmsSite pojo);

    /**
     * save
     * @param pojo
     * @return
     */
    String save(TCmsSiteVo pojo);

    /**
     * update
     * @param pojo
     * @return
     */
    String update(TCmsSiteVo pojo);

    /**
     * findVoById
     * @param id
     * @return
     */
    TCmsSiteVo findVoById(Integer id);

    /**
     * change
     * @param userVo
     * @param siteId
     * @return
     */
    String change(UserVo userVo, Integer siteId);

    /**
     * findByDomain
     * @param domain
     * @return
     */
    TCmsSite findByDomain(String domain);
}
